﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="jcxm.aspx.cs"  EnableViewState="False" validateRequest="false" Inherits="UI_jcxm" %>

 <%@Register TagPrefix="dntb" Namespace="DotNetTextBox" Assembly="DotNetTextBox"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title >发布通告</title>
    <link href="../images/style.css"  rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="../js/jiazai.js"></script>
    <script src="../js/introbox.js" type="text/javascript"></script>
        <script language="javascript" type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
    <style type="text/css">
     .hh{word-break:break-all;word-wrap:break-word}
        
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%" class="tableBorder"  border='1' cellspacing="0" style="border-collapse: collapse;"  bgcolor="#ffffff" bordercolor="#cccccc">
                   <tr align="center" valign="middle"> 
                     <th height="22" colspan="88">基 础 项 目 管 理 </th>
                   </tr>
     <tr>
        <td>标题</td>
        <td title='header=[说明] body=[请在这里输入标题，尽量简短，一般而言20个字符以内是最佳的标题长度。]'  ><asp:TextBox ID="txbtitle" runat="server" Width="90%"></asp:TextBox></td>
     </tr>
     
     <tr>
        <td class="style1">内容</td>
        <td>
                   
   <DNTB:WebEditor id="txbcontent" Skin="skin/xp/" runat="server"></DNTB:WebEditor> 
        </td>
     </tr>
     <tr>
        <td class="style1"></td>
        <td><asp:Button ID="btnok"  CssClass="btn"  runat="server" Text="  发  布 " onclick="btnok_Click" /></td>
     </tr>
     </table>

     <table  align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
           <tr><td>
                      <asp:GridView ID="gvList"  GridLines="Both" runat="server" AllowPaging="true" CellPadding="2" AutoGenerateColumns="False"  EmptyDataText="没有匹配费"  OnRowDataBound="gvList_RowDataBound" CssClass="tableBorder" Width="100%">
                <Columns>
                    <asp:TemplateField HeaderText="选">
                        <itemstyle width="10px" />
                        <headerstyle width="10px" />
                        <itemtemplate>
                        <asp:CheckBox ID="chkContentId"  ValidationGroup='<%# Eval("id") %>' runat="server"  class="checkbox" /> 
                   </itemtemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="id" HeaderText="ID">
                        <itemstyle horizontalalign="Right" width="40px" />
                        <headerstyle width="40px" />
                    </asp:BoundField>
                     <asp:TemplateField HeaderText="标题">
                        <itemstyle width="100px" HorizontalAlign="left" />
                        <headerstyle width="100px" HorizontalAlign="left" />
                        <itemtemplate>
                           <%#Eval("title") %> 
                        </itemtemplate>
                    </asp:TemplateField>
                   <asp:TemplateField HeaderText="调用">
                        <itemstyle width="100px" HorizontalAlign="left" />
                        <headerstyle width="100px" HorizontalAlign="left" />
                        <itemtemplate>
                         <a href='../site/basicinfo.aspx?id=<%#Eval("id") %>&type=jcxm' target="_blank">点击查看调用</a> 
                        </itemtemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="时间">
                        <itemstyle width="150px" HorizontalAlign="left" />
                        <headerstyle width="150px" HorizontalAlign="left" />
                        <itemtemplate>
                           <%#Eval("sj") %> 
                        </itemtemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="操作">
                        <itemstyle width="80px" HorizontalAlign="left" />
                        <headerstyle width="80px" HorizontalAlign="left" />
                        <itemtemplate>
                            <a href='jcxm.aspx?action=xiugai&id=<%#Eval("id") %>'>修改</a>
                            <a href='del.aspx?T=jcxm&id=<%#Eval("id") %>' onclick="javascript:if (confirm('您真的确定要删除吗？\n\n请确认！')==true){return true}else{return false}">删除</a>

                        </itemtemplate>
                    </asp:TemplateField>
                </Columns>
               <PagerSettings Visible="False" />
                
            </asp:GridView>

           </td></tr>
           </table> 
            <table border="0" cellpadding="0" cellspacing="0" class="PageTableCss" width="100%">
                                                    <tr>
                                                        <td class="PageLableCss" style="height: 41px">
                                                            <asp:Label ID="Label5" runat="server" Text="总共【"></asp:Label>
                                                            <asp:Label ID="LblRecordCount" runat="server" ForeColor="blue"></asp:Label>
                                                            <asp:Label ID="Label6" runat="server" Text="】条"></asp:Label>
                                                            <asp:Label ID="Label3" runat="server" Text="共【"></asp:Label>
                                                            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
                                                            <asp:Label ID="Label4" runat="server" Text="】页"></asp:Label>
                                                            <asp:Label ID="Label1" runat="server" Text="第【"></asp:Label>
                                                            <asp:Label ID="LblCurrentIndex" runat="server" ForeColor="red"></asp:Label>
                                                            <asp:Label ID="Label2" runat="server" Text="】页"></asp:Label>
                                                        </td>
                                                        <td class="PageLinkButtonCss" style="height: 41px">
                                                            <asp:LinkButton  CssClass="btn" ID="btnFirst" runat="server" CommandArgument="first" OnClick="PagerButtonClick">首 页</asp:LinkButton>
                                                            <asp:LinkButton  CssClass="btn"  ID="btnPrev" runat="server" CommandArgument="prev" OnClick="PagerButtonClick">上一页</asp:LinkButton>
                                                            <asp:LinkButton  CssClass="btn"  ID="btnNext" runat="server" CommandArgument="next" OnClick="PagerButtonClick">下一页</asp:LinkButton>
                                                            <asp:LinkButton  CssClass="btn"  ID="btnLast" runat="server" CommandArgument="last" OnClick="PagerButtonClick">尾 页</asp:LinkButton>
                                                        
                                                        </td>
                                                    </tr>
                                                </table>

            <div class="footer">
                <div class='pagerLeft'>
                    <asp:Button ID="btnall" Text="选择全部"  CssClass="btn"  runat="server" OnClick="btnall_Click" />
                    <asp:DropDownList ID="ddlOper" runat="server">
                        
                        <asp:ListItem Value="del">直接删除</asp:ListItem>
                    </asp:DropDownList>
                    
                    <asp:Button ID="btnExecute" runat="server"  Text="执行"  CssClass="btn"  OnClick="btnExecute_Click" /></div>
                
            </div>
    </div>
        
    </form>
         <script type="text/javascript">

         var csseven = { 'background-color': 'f4f5eb' };
         var cssodd = { 'background-color': '' };
         var csshover = { 'background-color': 'CCFF99' };
         $('#gvList  tr:even').css(csseven);
         $("#gvList   tr:even").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(csseven); }
          );
         $("#gvList   tr:odd").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(cssodd); }
          );
    </script>

</body>
</html>
